package com.qf.fc.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qf.fc.dao.AddressDao;
import com.qf.fc.entity.Address;
import com.qf.fc.service.AddressService;

import lombok.RequiredArgsConstructor;
@RequiredArgsConstructor
@Service
public class AddressServiceImpl implements AddressService {

    @Autowired
    private AddressDao dao;

    @Override
    public List<Address> selectByUid(Integer uid) {
        return dao.selectByUid(uid);
    }

    @Override
    public int add(Address address) {
        return dao.insert(address);
    }
    

}
